<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
              		//对象的方法
		//is()比较两个值是否严格相等,相当于以前的===

        // const flag =  Object.is("111",111)
        // const flag =  Object.is(NaN,NaN) //小bug
        // console.log(flag);
        // console.log(NaN===NaN);

           //assign()方法，主要是浅拷贝，用于对象的合并

        const obj1 = {
            name:"张三",
        }
        const obj2 = {
            age:10,
        }
        const newObj = Object.assign({},obj1,obj2);

        // console.log(newObj);

        console.log(Object.keys(newObj));
        console.log(Object.values(newObj));
        console.log(Object.entries(newObj));
    </script>
</body>
</html>